﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPage.master" AutoEventWireup="true" CodeFile="bid_goods_chexiao.aspx.cs" Inherits="Agency_bid_goods_chexiao" Title="Untitled Page" %>
<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMaster" Runat="Server">

    <script language="javascript" type="text/javascript">
         function SelectAll()
        {
            var i;
             var a = document.getElementsByName('chk');
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = true; 
            }           
        }
        function ClearAll()
        {
            var i;
             var a = document.getElementsByName('chk');
             
             for( i = 0;i < a.length;i++)
            {
                a[i].checked = false; 
            }           
        }
        
        function CheckOthers()
        {
            var i;
            var a = document.getElementsByName('chk');
             
             for( i = 0;i < a.length;i++)
            {
            
                if(a[i].checked!=true)
                {
                    a[i].checked =true ; 
                }
                else
                {   
                    a[i].checked = false; 
                }
            }           
            
        }
    </script>

    <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
        <tr>
            <td style="width: 4px; height: 34px;">
                <img height="34" src="../images/intro_left.gif" width="4" /></td>
            <td class="intro_wordbg" style="height: 34px">
                投标人确认</td>
            <td background="../images/intro_bg.gif" style="height: 34px">
                <img height="34" src="../images/intro_right.jpg" width="118" /></td>
        </tr>
    </table>
    <table id="tabData" align="center" border="1" cellpadding="2" cellspacing="1" width="98%">
        <tr>
            <td style="width: 135px; height: 23px; text-align: center">
                <asp:Label ID="Label1" runat="server" Text="流水号:"></asp:Label></td>
            <td style="width: 304px; height: 23px">
                <asp:TextBox ID="Textgoodsid" runat="server" Width="209px"></asp:TextBox></td>
            <td style="width: 139px; height: 23px; text-align: center">
                <asp:Label ID="Label3" runat="server" Text="生产企业名称:"></asp:Label></td>
            <td style="height: 23px">
                <asp:TextBox ID="comoanyname_sc" runat="server" Width="209px"></asp:TextBox>&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 135px; height: 23px; text-align: center">
                <asp:Label ID="Label2" runat="server" Text="生产企业用户名:"></asp:Label></td>
            <td style="width: 304px; height: 23px">
                <asp:TextBox ID="usercode" runat="server" Width="209px"></asp:TextBox>
                <asp:Button ID="ToEcxul" runat="server" CssClass="button_bg4" OnClick="ToEcxul_Click"
                    Text="导出到Excel" Width="72px" /></td>
            <td style="width: 139px; height: 23px; text-align: center;">
                <asp:Label ID="Label4" runat="server" Text="投标企业名称:"></asp:Label></td>
            <td style="height: 23px; text-align: left;">
                <asp:TextBox ID="Textcompanytb" runat="server" Width="209px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" colspan="1" style="width: 135px; text-align: center">
                <asp:Label ID="Label5" runat="server" Text="投标企业用户名:"></asp:Label></td>
            <td align="right" colspan="1" style="width: 304px; text-align: left">
                <asp:TextBox ID="TextusercodeTB" runat="server" Width="209px"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" CssClass="button_Query" Text="" /></td>
            <td align="right" colspan="4">
                <input id="Button3" class="button_bg6" onclick="javascript:SelectAll();" type="button"
                    value="全选" />
                &nbsp;<input id="Button4" class="button_bg6" onclick="javascript:ClearAll();" type="button"
                    value="清空" />
                &nbsp;<input id="Button5" class="button_bg6" onclick="javascript:CheckOthers();" type="button"
                    value="反选" />
                &nbsp;&nbsp; &nbsp;&nbsp;
                <asp:Button ID="Button2" runat="server" class="button_bg6" OnClick="Button2_Click"
                    OnClientClick="javascript:return confirm('撤销投标确认将会清除相应的投标商品,您将不能为这些商品投标,是否真的要撤销？')"
                    Text="撤销投标确认" Width="90px" />
                &nbsp;
                <%-- <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" Font-Size="9pt" OnCheckedChanged="CheckBox2_CheckedChanged"
                        Text="全选" />--%>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="table_table"
                    HeaderStyle-CssClass="table_title" Width="98%">
                    <Columns>
                        <asp:BoundField DataField="goodsid" HeaderText="商品流水号" />
                        <asp:BoundField DataField="Productname" HeaderText="通用名" />
                        <asp:BoundField DataField="Medicinemodel" HeaderText="剂型" />
                        <asp:BoundField DataField="Outlookc" HeaderText="规格" />
                        <asp:BoundField DataField="Unit" HeaderText="单位" />
                        <asp:BoundField DataField="xishu" HeaderText="转换系数" />
                        <asp:BoundField DataField="usercode_SC" HeaderText="生产企业用户名" />
                        <asp:BoundField DataField="username_SC" HeaderText="生产企业" />
                        <asp:BoundField DataField="usercode_tb" HeaderText="投标企业用户名" />
                        <asp:BoundField DataField="username_tb" HeaderText="投标企业" />
                        <asp:BoundField DataField="status" HeaderText="状态" />
                        <asp:BoundField DataField="Accept_time" HeaderText="操作日期" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <input name='chk' type='checkbox' value='<%#DataBinder.Eval(Container.DataItem, "goodsid")%>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="table_td" />
                    <SelectedRowStyle CssClass="table_td" />
                    <FooterStyle CssClass="table_td" />
                    <HeaderStyle CssClass="table_title" />
                </asp:GridView>
                <asp:GridView ID="GridView2" runat="server">
                </asp:GridView>
            </td>
        </tr>
    </table>
    <div align="right">
        <table border="0">
            <tr>
                <td style="height: 12px">
                    <input class="button_bg6" disabled="disabled" name="butSelectAll" onclick="javascript:return CheckForm();"
                        style="width: 74px" type="submit" value="查看全部" />
                </td>
                <td style="height: 12px">
                    <uc1:dbpageflip id="DbPageFlip1" runat="server"></uc1:dbpageflip>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

